﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessLogic;

namespace CentalineWeb
{
    public partial class Sysmanage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSync_click(object sender, EventArgs e)
        {
            var result = new DeptManager().SyncDepartments();
            this.ClientScript.RegisterStartupScript(typeof(string),"report","alert('已同步"+result+"个部门信息')",true);
        }
    }
}